<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/30
 * Time: 13:50
 */

namespace app\index\controller;


use app\index\server\DaybookServer;
use app\index\validate\GetListValidate;

class Daybook extends Auth
{
    private $server;

    public function __construct()
    {
        $this->server = new DaybookServer();
    }

    public function getCardList()
    {
        // 验证 成功返回 params
        $params = (new GetListValidate())->goCheck();
        // 操作
        $result = $this->server->getCardList($params);
        // return
        return $result;
    }

    public function getUserList()
    {
        // 验证 成功返回 params
        $params = (new GetListValidate())->goCheck();
        // 操作
        $result = $this->server->getUserList($params);
        // return
        return $result;
    }
}